package models.menu;

import play.data.validation.Constraints;
import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.List;

/**
 * Created by Gipxy group
 * Date: 4/2/12
 */
@Entity
public class Menu extends Model {
    @Id
    public Long id;

    public String url;      //=null mean can't click able

    public String name;

    public int index; //So thu tu xuat hien tren menu.

    /**
     * Generic query helper for entity Computer with id Long
     */
    public static Finder<Long,Menu> find = new Finder<Long,Menu>(Long.class, Menu.class);


    public Menu() {
    }

    public static List<Menu> all() {
        return Menu.find.all();
    }
}
